<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <div class="container">
        <div class="page active">
            <div class="register-container">
                <h1>用户注册</h1>
                <form id="registerForm">
                    <div class="form-group">
                        <input type="text" id="regUsername" placeholder="用户名" required>
                        <span class="form-tip">用户名长度4-20个字符</span>
                    </div>
                    <div class="form-group">
                        <input type="password" id="regPassword" placeholder="密码" required>
                        <span class="form-tip">密码长度6-20个字符</span>
                    </div>
                    <div class="form-group">
                        <input type="text" id="regPhone" placeholder="手机号" required>
                    </div>
                    <div class="form-group">
                        <input type="email" id="regEmail" placeholder="邮箱（可选）">
                    </div>
                    <button type="submit" class="btn-primary">注册</button>
                    <div class="form-footer">
                        <span>已有账号？</span>
                        <a href="index.html">去登录</a>
                    </div>
                </form>
            </div>
        </div>
        <div id="messageAlert" class="message-alert"></div>
    </div>
    <script src="js/register.js"></script>
</body>
</html> 